import os,sys
import Image

def clean(file):
    im = Image.open(file)
    w,h = im.size
    for j in range(w):
        for i in range(h):
            #print im.getpixel((j,i))
            #return
            p = im.getpixel((j,i))
            
            if p != (254,254,254):
                if p[1] != 0 and p[0] == 0:
                    print p
                #im.putpixel((j,i),0)
    #im.save(file)
